package backend.project.gym_management.mapper;


import backend.project.gym_management.pojo.entity.PayOrder;
import org.apache.ibatis.annotations.Param;

public interface AliPayMapper {

    PayOrder selectOrder(Long oid);

    int updateOrder(PayOrder oder);

    PayOrder checkExistingOrder(@Param("uid") Long uid, @Param("cid") Long cid);

    PayOrder selectOrderByUserAndCourse(@Param("uid") Long uid, @Param("cid") Long cid);

    int hadCourse(@Param("uid") Long uid, @Param("cid") Long cid);

    String getUnameByUid(Long uid);
}
